export interface Money {
    raw: number
    gold: number
    silver: number
    copper: number
}

export const parseMoney = (money: number) => {
    return {
        raw: money,
        gold: Math.floor(money / 10000),
        silver: Math.floor(money / 100) % 100,
        copper: money % 100
    }
}